/**
 * Created by IntelliJ IDEA.
 *
 * @Avatar: xyb
 * Date: 2017/9/5
 * Time: 16:02
 * 文集表
 * To change this template use File | Settings | File Templates.
 */

package blog.sys.entity;


import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

@Entity
@Table(name = "t_corpus")
public class Corpus implements Serializable {

    private Integer id;

    private String name;// 文集名称

    private Integer image_id;//头像

    private Date create_time;// 创建时间

    private Integer create_author_id;// 创建作者编号

    private String remark;// 描述

    private Integer status;// 文集状态：0：正常，1：注销

    @Id
    @Column(name = "id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public Integer getId() {
        return id;
    }

    @Column(name = "name")
    public String getName() {
        return name;
    }

    @Column(name = "image_id")
    public Integer getImage_id() {
        return image_id;
    }

    @Column(name = "create_time")
    public Date getCreate_time() {
        return create_time;
    }

    @Column(name = "create_author_id")
    public Integer getCreate_author_id() {
        return create_author_id;
    }

    @Column(name = "remark")
    public String getRemark() {
        return remark;
    }

    @Column(name = "status")
    public Integer getStatus() {
        return status;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setImage_id(Integer image_id) {
        this.image_id = image_id;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public void setCreate_author_id(Integer create_author_id) {
        this.create_author_id = create_author_id;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}
